package com.mingqijia.gassafety.job.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.entity.RecordDetector;
import com.mingqijia.gassafety.db.mapper.RecordDetectorMapper;
import com.mingqijia.gassafety.job.service.RecordDetectorService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 探测器上报数据表 服务实现类
 * </p>
 *
 * @author guoliang.lao
 * @since 2022-08-03
 */
@Service
public class RecordDetectorServiceImpl extends ServiceImpl<RecordDetectorMapper, RecordDetector> implements RecordDetectorService {

    @Override
    public List<RecordDetector> getListByRecordId(List<Long> list) {
        LambdaQueryWrapper<RecordDetector> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(RecordDetector::getRecordId,list);
        return this.list(queryWrapper);
    }
}
